'use strict'

const domdata = require('./crawler/domdata');
const post = require('./model/post');
const arrurl = require('./url');

post.sync({ force: true }).then(() => { 
    for (var site in arrurl) {
        var url = arrurl[site];
        for (var i = 1; i <= 15; i++) {
            var result1 = url.replace('+', i);
            domdata(result1);
        }
    }
})
